<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        Menu - <span class="subitem">MenuButton</span>
    </ui:define>

    <ui:define name="description">
        MenuButton groups multiple items in a popup.
    </ui:define>

    <ui:param name="documentationLink" value="/components/menubutton" />

    <ui:define name="implementation">
        
        <h:form>
            <p:growl id="messages" showDetail="true"/>

            <p:menuButton value="Options">
                <p:menuitem value="Save" action="#{menuView.save}" update="messages" icon="pi pi-save"/>
                <p:menuitem value="Update" action="#{menuView.update}" update="messages" icon="pi pi-refresh"/>
                <p:menuitem value="Delete" action="#{menuView.delete}" ajax="false" icon="pi pi-times"/>
                <p:separator />
                <p:menuitem value="Homepage" url="http://www.primefaces.org" icon="pi pi-home"/>
            </p:menuButton>
        </h:form>
        
    </ui:define>

</ui:composition>